home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1326.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  1.9 KB  |  83 lines

  1. 75
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. Sleep 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baSleep pauses the calling Director/Authorware program.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. baSleep( milliSecs )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. Integer. 
  36. --- RECORDSEPARATOR ---
  37. milliSecs is the time to sleep for, in thousandths of a second.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Void.
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. Examples:
  50. --- RECORDSEPARATOR ---
  51.  
  52. --- RECORDSEPARATOR ---
  53. Director: 
  54. --- RECORDSEPARATOR ---
  55. baSleep( 200 ) 
  56. --- RECORDSEPARATOR ---
  57. Authorware: 
  58. --- RECORDSEPARATOR ---
  59. baSleep( 200 )
  60. --- RECORDSEPARATOR ---
  61.  
  62. --- RECORDSEPARATOR ---
  63. Notes:
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. This function is most useful for 'lowering' the priority of Director to allow other 
  68. --- RECORDSEPARATOR ---
  69. programs a larger slice of available processing time - for example when playing a 
  70. --- RECORDSEPARATOR ---
  71. mpeg movie. Calling this function in a loop such as in a on exitFrame handler, will 
  72. --- RECORDSEPARATOR ---
  73. give other processes a chance to run while still allowing Director to process events 
  74. --- RECORDSEPARATOR ---
  75. such as mouse clicks. Larger numbers will give other programs more time, but slow 
  76. --- RECORDSEPARATOR ---
  77. down Director responses. Values between 50 and 200 would be a good starting 
  78. --- RECORDSEPARATOR ---
  79. point for experimentation. 
  80. --- RECORDSEPARATOR ---
  81. This function is available in 16 bit, but its effectiveness is limited because 16 bit 
  82. --- RECORDSEPARATOR ---
  83. Windows has limited multitasking abilities.